package com.leyou.search.pojo;

import com.leyou.common.pojo.PageResult;
import com.leyou.item.pojo.Brand;
import com.leyou.item.pojo.Category;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @Author: Rose
 * @Date: 2021/4/6 13:21
 * @description ${description}
 * @version: 1.0.0
 */
@NoArgsConstructor
@Data
public class SearchResult extends PageResult<Goods> {

    private List<Category> categories;

    private List<Brand> brands;

    /**
     * // 规格参数过滤条件
     */
    private List<Map<String, Object>> specs;


    public SearchResult(Long total, Long tatalPage, List<Goods> items, List<Category> categories, List<Brand> brands) {
        super(total, tatalPage, items);
        this.categories = categories;
        this.brands = brands;
    }

    public SearchResult(Long total, Long tatalPage, List<Goods> items, List<Category> categories, List<Brand> brands, List<Map<String, Object>> specs) {
        super(total, tatalPage, items);
        this.categories = categories;
        this.brands = brands;
        this.specs = specs;
    }
}
